package com.damon.utils;

import java.util.ArrayList;
import java.util.Set;
import java.util.TreeSet;

import com.damon.entity.ApiEntity;
import com.damon.entity.PrintDeviceEntity;
import com.damon.window.WcsWindow;

import lombok.Data;

/**
 * ps:用来保存一些公共对象实例
 * @author 风蚕
 *
 */
@Data
public class GlobalOjbectUtil {
	//java可视化实例对象
	public static WcsWindow window;
	//数据库中查到的待监控的接口
	private static ArrayList<ApiEntity> apiList = new ArrayList<ApiEntity>();
	//已创建线程的接口
	private static Set<String> liveApiThreadSet = new TreeSet<>();
	
	//java可视化实例对象
	public static WcsWindow getWindow() {
		return window;
	}
	public static void setWindow(WcsWindow wcsWindow) {
		window = wcsWindow;
	}
	
	//数据库中查到的待监控的接口
	public static ArrayList<ApiEntity> getApiList(){
		return GlobalOjbectUtil.apiList;
	}
	
	//已创建线程的接口
	public static Set<String> getLiveApiThreadSet(){
		return liveApiThreadSet;
	}
}
